import Vue from 'vue';
import Router from 'vue-router';
const path = require('path');


Vue.use(Router);
export default new Router({
  base: path.resolve(__dirname),
  app: "/",
  scrollBehavior: () => ({ y: 0 }),
  routes: [
    {
      path: '/',
      name: 'index',
      desc: "起始页",
      component: require('./index.vue'),
      meta: {
        title: '活动页面介绍页面'
      }
    },
    {
      // 安全保障——新
      path: '/safeensure',
      name: 'safeensure',
      component: resolve => require(['@/router/safe'], resolve),
      meta: {
        title: '安全保障'
      }
    },
    //关于我们--产品页面
    {
      path: '/aboutus',
      name: 'aboutUs',
      component: resolve => require(['@/router/aboutus'], resolve),
      meta: {
        title: '关于我们'
      }
    },
    //app活动中心
    {
      path: '/appactive',
      name: 'appactive',
      component: resolve => require(['@/router/appactive'], resolve),
      meta: {
        title: '活动中心'
      }
    },
    {
      // 跳转到客服代理页面
      path: '/customProxy',
      name: 'customProxy',
      component: resolve => require(['@/router/customproxy'], resolve),
      meta: {
        title: '在线客服'
      }
    },
    //投资详情
    {
      path: '/invest_detail',
      name: 'invest_detail',
      component: resolve => require(['@/router/investdetail'], resolve),
      meta: {
        title: '投资详情'
      }
    },
    //
    {//提现成功
      path: '/withdraw_success',
      name: 'withdraw_success',
      component: resolve => require(['@/router/withdraw_success'], resolve),
      meta: {
        title: '提现'
      }
    },
    {//购买成功
      path: '/buy_success',
      name: 'buy_success',
      component: resolve => require(['@/router/buy_success'], resolve),
      meta: {
        title: '购买成功'
      }
    },
    {//协议模板
      path: '/arrge',
      name: 'arrge',
      component: resolve => require(['@/router/arrge'], resolve),
      meta: {
        title: '协议'
      }
    },
    {//合同
      path: '/invest_agreement',
      name: 'invest_agreement',
      component: resolve => require(['@/router/invest_agreement'], resolve),
      meta: {
        title: '合同'
      }
    },
    {//服务协议
      path: '/service_agreement',
      name: 'service_agreement',
      component: resolve => require(['@/router/service_agreement'], resolve),
      meta: {
        title: '服务协议'
      }
    },
    {//充值成功
      path: '/recharge_success',
      name: 'recharge_success',
      component: resolve => require(['@/router/recharge_success'], resolve),
      meta: {
        title: '充值成功'
      }
    },
    {//注册协议
      path: '/reg_agreement',
      name: 'reg_agreement',
      component: resolve => require(['@/router/reg_agreement'], resolve),
      meta: {
        title: '注册协议'
      }
    },
    {//投资风险提示书
      path: '/risk_letter',
      name: 'risk_letter',
      component: resolve => require(['@/router/risk_letter'], resolve),
      meta: {
        title: '投资风险提示书'
      }
    },
    {//银行卡列表
      path: '/bank_list',
      name: 'bank_list',
      component: resolve => require(['@/router/bank_list'], resolve),
      meta: {
        title: '银行列表'
      }
    },
    {//转账授权书
      path: '/warrant',
      name: 'warrant',
      component: resolve => require(['@/router/warrant'], resolve),
      meta: {
        title: '银行转账授权书'
      }
    },
    {//提现说明
      path: '/withdraw_explain',
      name: 'withdraw_explain',
      component: resolve => require(['@/router/withdraw_explain'], resolve),
      meta: {
        title: '提现说明'
      }
    },
    {//银行存管
      path: '/bank_admin',
      name: 'bank_admin',
      component: resolve => require(['@/router/bank_admin'], resolve),
      meta: {
        title: '银行存管'
      }
    },
    {//新人学院
      path: '/third_step',
      name: 'third_step',
      component: resolve => require(['@/router/third_step'], resolve),
      meta: {
        title: '新人学院'
      }
    },
        {//新人学院操作指南
          path: '/instruction',
          name: 'instruction',
          component: resolve => require(['@/router/instruction'], resolve),
          meta: {
            title: '操作指南'
          }
        },
  ]
})







































